From 8b4b1afecf9ded680d4e1044514dcb9a7bc72119 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 6 May 2005 17:57:28 +0000 Subject: [PATCH] Fix C99-ism in tef_xml.c --- gpsbabel/Makefile | 4 ++-- gpsbabel/tef_xml.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gpsbabel/Makefile b/gpsbabel/Makefile index ed4403a97..944dfe852 100644 --- a/gpsbabel/Makefile +++ b/gpsbabel/Makefile @@ -91,8 +91,8 @@ dep: (echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > internal_styles.c || (rm -f internal_styles.c ; exit 1)' ) >> /tmp/dep echo Edit Makefile and bring in /tmp/dep -VERSIONU=1_2_6-beta04302005c-gsak+jamiez -VERSIOND=1.2.6_beta04302005c-gsak+jamiez +VERSIONU=1_2_6-beta05062005-marky +VERSIOND=1.2.6_beta05062005-marky # VERSIONU=1_2_5 # VERSIOND=1.2.5 diff --git a/gpsbabel/tef_xml.c b/gpsbabel/tef_xml.c index b53b4cc3a..0ab535c16 100644 --- a/gpsbabel/tef_xml.c +++ b/gpsbabel/tef_xml.c @@ -228,10 +228,11 @@ tef_item_start(const char *args, const char **attrv) void tef_point(const char *args, const char **attrv) { - if (!wpt_tmp) return; - const char **avp = &attrv[0]; char *comma; + + if (!wpt_tmp) return; + while (*avp) { if (strcmp(avp[0], "y") == 0) -- 2.30.2